package com.quanyan.place.service;

import com.quanyan.api.APIResponse;
import com.quanyan.place.entity.User;

/**
 * Created by songzj on 16/4/12.
 */
public interface UserService<T> {


    APIResponse userInfo(int id);


    APIResponse userRegist(User user);

    APIResponse userLogin(String loginName, String password);

    /**
     * 通过手机号查询用户
     * @param mobile
     * @return
     */
    User getUserByMobile(String mobile);

    /**
     * 用户通过手机号注册
     * @param mobile
     * @return
     */
    APIResponse userRegisterByMobile(String mobile);


    /**
     * 用户通过手机号和openId注册
     * @param mobile
     * @param openId
     * @return
     */
    APIResponse userRegisterByMobileAndOpenId(String mobile,String openId);

	/**
	 * APP用户修改手机号
	 * @param mobile
	 * @param uid
	 * @return
	 */
    APIResponse changMobile(String mobile,Integer uid);

}
